package com.accp.vehiclecare.action.lscaction;

import com.accp.vehiclecare.biz.lscbiz.LscuservehicleBiz;
import com.accp.vehiclecare.pojo.Uservehicle;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.text.SimpleDateFormat;

@RestController
@RequestMapping("/c/lscusveh")
public class LscuservehicleAction {
    @Autowired
    private LscuservehicleBiz biz;

    @PostMapping("add")
    public int addone(@RequestBody Uservehicle us){
        return biz.addone(us);
    }

    @DeleteMapping("del")
    public int removeone(Integer usid){
        return biz.removeone(usid);
    }

    @GetMapping("qone")
    public Uservehicle queone(Integer id){
        return biz.querone(id);
    }
    @PutMapping("xg")
    public int modif(@RequestBody Uservehicle us){
        return biz.modif(us);
    }
}
